<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<script>
    let arr={
        name:'yanle',
        getAge:function(){
            return '25'
        }
    };

    for(let key in arr){
        console.log(arr.key);
    }
</script>
</body>
</html>